package com.ybu.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class RegisterDTO {
    @NotBlank(message = "注册的用户名不能为空")
    private String username;
    @NotBlank(message = "注册密码不能为空")
    @Length(max = 12,min = 6,message = "密码长度的范围为8-12")
    private String password;
    @NotBlank(message = "两次输入的密码不一致")
    private String rePassword;
}
